package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (AdressEditDto)表实体类
 *
 * @author makejava
 * @since 2022-07-03 15:48:58
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@TableName("t_address")
public class AdressEdit extends Model<AdressEdit> {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long uid;
    private String name;
    private String phone;
    private Integer isdefault;
    private String address;
    private Date ctime;

    public AdressEdit(String name, String phone, String address) {
        this.phone = phone;
        this.name = name;
        this.address = address;
    }
}
